﻿using B.S.BasicData.Domain.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.BasicData.Domain.TSH
{
    /// <summary>
    /// 基类
    /// </summary>
    public class BaseClass : BaseEntity
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        [MaxLength(30, ErrorMessage = "创建人长度不能超过30字符")]
        public string? Creator { get; set; } 
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ModifyTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        [MaxLength(30, ErrorMessage = "修改人长度不能超过30字符")]
        public string? Modifier { get; set; } 
    }
}
